#ifndef __BSP_EPIT_H
#define __BSP_EPIT_H

#include "../../imx6ul/imx6ul.h"
#include "../int/bsp_int.h"

void EPIT_INIT(EPIT_Type *EPIT, unsigned int frac, unsigned int value);
void EPIT_ENABLED(EPIT_Type *EPIT);
void EPIT_DISABLED(EPIT_Type *EPIT);
void EPIT_SET_LR(EPIT_Type *EPIT, unsigned int value);
void EPIT_GIC_EnableIRQ(IRQn_Type IRQn);
void EPIT_IRQ_HANDLER(IRQn_Type irq, system_irq_handler_t handler,
                      void *userParam);

#endif